﻿<%@ Import Namespace="System.Reflection" %>
<%@ Import Namespace="AFI.Speargun.Web.Core" %>

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.Dictionary<AssetEntryAdditionalDefinitionField, string>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    资产 - 编辑 -
    <%= ViewData["AssetEntry.Appellation"]%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        编辑 -
        <%= ViewData["AssetEntry.Appellation"]%></h2>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {%>
    <fieldset>
        <legend>附加信息</legend>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="data-table">
            <tr>
                <th>
                    项目
                </th>
                <th>
                    值
                </th>
                <th>
                    备注
                </th>
            </tr>
            <%
                foreach (var i in Model)
                {
            %>
            <tr>
                <th scope="row">
                    <%= Html.Encode(i.Key.Appellation) %>:
                </th>
                <td>
                    <%= Html.TextBox(i.Key.FieldName, i.Value, new { @class = "input-box", @size = 50 })%>
                    <%= Html.ValidationMessage("Appellation", "*") %>
                </td>
                <td>
                    <%= Html.Encode(i.Key.Remark) %>
                </td>
            </tr>
            <% } %>
        </table>
        <p>
            <input type="submit" value="提交" /></p>
    </fieldset>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
    <% Html.RenderPartial("AssetEntryMenu", ViewData["AssetEntryId"].ToString()); %>
</asp:Content>
